
#ifndef _ENCODING_MANAGER_H
#define _ENCODING_MANAGER_H

#include <fonts_manager.h>

typedef struct EncodingOpr{
	char *name;
	int iHead;
	PT_FontOpr ptFontOprSupportedHead;
	int (*IsSupport)(unsigned char *pucBufferHead);
	int (*GetCodeFrmBuffer)(unsigned char *pucBufferStart, unsigned char *pucBufferEnd, unsigned int *pdwCode);
	struct EncodingOpr *ptNext;
}T_EncodingOpr, *PT_EncodingOpr;

int RegisterEncodingOpr(PT_EncodingOpr ptEncodingOpr);
void ShowEncodingOpr(void);
PT_EncodingOpr SelectEncodingForFile(unsigned char *pucBufHead);
int AddFontOprForEncoding(PT_EncodingOpr ptEncodingOpr, PT_FontOpr ptFontOpr);
int DelFontOprFrmEncoding(PT_EncodingOpr ptEncodingOpr, PT_FontOpr ptFontOpr);
int EncodingInit(void);
int Utf16beEncodingRegister(void);
int Utf16leEncodingRegister(void);
int Utf8EncodingRegister(void);
int AsciiEncodingRegister(void);



#endif

